package cn.fzkj.gulimall.product.feign;

import cn.fzkj.common.to.es.SkuEsModel;
import cn.fzkj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @DESCRIPTION 检索服务远程调用接口
 * @Author yaya
 * @DATE 2022/5/14
 */
@FeignClient(name = "gulimall-search")
public interface SearchFeignService {

    /** 上架商品 */
    @PostMapping(value = "/search/save/product")
    public R productsUp(@RequestBody List<SkuEsModel> skuEsModelList);
}
